namespace local = ""
namespace inh = inherit

start = element library { book-element+ }

born-element = element born { text }

author-element = 
   grammar
   {
start = 
         element author
         {
            attribute id { text },
            name-element,
            parent born-element,
            dead-element?
         }
      name-element = element name { text }
      dead-element = element dead { text }
   }

book-element = 
   element book
   {
      attribute id { text },
      attribute available { text },
      isbn-element,
      title-element,
      author-element*,
      character-element*
   }

character-element = 
   grammar
   {
start = 
         element character
         {
            attribute id { text },
            name-element,
            parent born-element,
            qualification-element
         }
      name-element = element name { text }
      qualification-element = element qualification { text }
   }

isbn-element = element isbn { text }

title-element = element title { attribute xml:lang { text }, text }
